package com.apexedu.portal.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * 消息提醒
 * Created by liuxu on 2015/8/17.
 */
@Entity
@Table(name = "T_MESSAGE")
public class TMessage {
	private String wid;
	private String bt;
	private String nr;
	private String url;
	private String zt;
	private String userid;
	private String ly;
	private String type;
	private String broadcastusers;
	private Date sj;
	private String clzt;

	/* 非表字段-数据来源名称 */
	private String lymc;

	@Id
	@Column(name = "WID", nullable = false, insertable = true, updatable = true, length = 50)
	public String getWid() {
		return wid;
	}

	public void setWid(String wid) {
		this.wid = wid;
	}

	@Basic
	@Column(name = "BT", nullable = true, insertable = true, updatable = true, length = 500)
	public String getBt() {
		return bt;
	}

	public void setBt(String bt) {
		this.bt = bt;
	}

	@Basic
	@Column(name = "NR", nullable = true, insertable = true, updatable = true, length = 4000)
	public String getNr() {
		return nr;
	}

	public void setNr(String nr) {
		this.nr = nr;
	}

	@Basic
	@Column(name = "URL", nullable = true, insertable = true, updatable = true, length = 500)
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Basic
	@Column(name = "ZT", nullable = false, insertable = true, updatable = true, length = 50)
	public String getZt() {
		return zt;
	}

	public void setZt(String zt) {
		this.zt = zt;
	}

	@Basic
	@Column(name = "USERID", nullable = true, insertable = true, updatable = true, length = 50)
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Basic
	@Column(name = "LY", nullable = false, insertable = true, updatable = true, length = 80)
	public String getLy() {
		return ly;
	}

	public void setLy(String ly) {
		this.ly = ly;
	}

	@Basic
	@Column(name = "TYPE", nullable = false, insertable = true, updatable = true, length = 50)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Basic
	@Column(name = "BROADCASTUSERS", nullable = true, insertable = true, updatable = true, length = 4000)
	public String getBroadcastusers() {
		return broadcastusers;
	}

	public void setBroadcastusers(String broadcastusers) {
		this.broadcastusers = broadcastusers;
	}

	@Basic
	@Column(name = "SJ", nullable = true, insertable = true, updatable = true)
	public Date getSj() {
		return sj;
	}

	public void setSj(Date sj) {
		this.sj = sj;
	}

	@Basic
	@Column(name = "CLZT", nullable = false, insertable = true, updatable = true)
	public String getClzt() {
		return clzt;
	}

	public void setClzt(String clzt) {
		this.clzt = clzt;
	}

	@Transient
	public String getLymc() {
		return lymc;
	}

	public void setLymc(String lymc) {
		this.lymc = lymc;
	}

}
